<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="./css/index.css">
  <!-- <link rel="stylesheet" href="./css/bootstrap.min.css"> -->
  <!-- <link rel="stylesheet" href="./css/bootstrap-theme.min.css"> -->
  <script src="./js/md5.js"></script>
  <script src="./js/jquery-1.10.2.min.js"></script>
  <!-- <script src="./js/bootstrap.min.js"></script> -->
</head>

<body>
  <div>
    <div class="content">
      <input type="text" id="input" placeholder="请输入用户名">
      <br />
      <input type="password" id="password" placeholder="请输入密码">
      <br />
      <button id="btn">登录</button>
    </div>
    <div class="content">
      <input type="file" id="file" placeholder="请选择文件" />
      <div id="progress"></div>
      <img id="output" />
      <br />
      <form id="uploadForm" enctype="multipart/form-data">
        请选择100M+文件
        <input type="file" name="photos" id="bigFile" multiple />
        <div id="progress2"></div>
        <button type="submit">上传</button>
      </form>
      <br />
    </div>
    <div class="content">
      <div>大文件上传</div>
      <div class="row">
        <div class="col-md-4 mrb20">点击按钮开始上传文件</div>
        <div class="col-md-8">
          <div class="wrap btn btn-default">
            <input type="file" id="fileMax" />
            <p>上传文件</p>
          </div>
        </div>
      </div>
      <div class="row" id="process1" style="display: none">
        <div class="col-md-4">校验文件进度</div>
        <div class="col-md-8">
          <div class="progress">
            <div id="checkProcessStyle" class="progress-bar" style="width:0%"></div>
            <p id="checkProcessValue" class="value">0%</p>
          </div>
        </div>
      </div>
      <div class="row" id="process2" style="display: none">
        <div class="col-md-4">上传文件进度</div>
        <div class="col-md-8">
          <div class="progress">
            <div id="uploadProcessStyle" class="progress-bar" style="width:0%"></div>
            <p id="uploadProcessValue" class="value">0%</p>
          </div>
        </div>
      </div>
    </div>
  </div>
  <script src="./http.js"></script>
  <script src="./method.js"></script>
  <script>
    // 点击登录
    formSubmit()

    // 文件加载的时候上传
    fileOnload()

    // 多文件加载上传
    uploadMultiple()

    // 点击提交按钮
    // formSubmit();
  </script>
  <!-- 大文件上传 -->
  <script src="./bigUpload.js"></script>
</body>

</html>